
<template>
<div >
    <el-form ref="form"   label-width="200px" size="mini" style="margin-top:50px" >
      <el-form-item label-width="470px" label="请输入打印登记簿编号："></el-form-item><br/>
      <el-form-item  label-width="400px" label="登记簿编号："><el-input size="small" style="width:270px"  v-model="id"></el-input> </el-form-item><br/>
      <el-form-item  label-width="400px">
          <!-- <el-button type="button"  @click= "print()">打印</el-button>
          <el-button type="button"  @click= "printAll()">打印全部未打印登记簿</el-button> -->
           <el-popover
              placement="bottom"
              title="提示："
              width="200"
              trigger="click"
              content="请链接打印机！！">
              <el-button slot="reference">打印</el-button>
           </el-popover>
           &nbsp;&nbsp;
            <el-popover
              placement="bottom"
              title="提示："
              width="200"
              trigger="click"
              content="请链接打印机！！">
              <el-button slot="reference">打印全部未打印登记簿</el-button>
           </el-popover>
     
     
      </el-form-item>
    </el-form>
</div>


    
</template>




<script>
  export default({
    name:"printRegisterBook",
    data () {
      return {
        id:null     
      }
    },
 
    methods: {
      del() {
         alert(this.id);
        this.sa.ajax("http://localhost:8081/printRegisterBook",{id:this.id},
        function (resp) {
      
           alert("打印成功:"+resp.data);
           

        }.bind(this),
        {type : 'get'}
      )
        // var tab = {id: 'delRegisterBook', name: '灭籍', view: () => import('@/sa-view/hpt/register.vue'), params: {id: this.id} };
        // this.sa_admin.showTab(tab);
        
        


			},
      // print(){
      //   alert("请连接印机！！")
      // },
      // printAll(){
      //   alert("请连接印机！！")
      // }

      
    } 
  });
</script>


<style scoped>

</style>